import Http from "@/utils/request"   // 注意文件位置
// 用户登录
namespace Login {
    // 用户登录表单
    export interface LoginReqForm {
        code: string;
		pid:number;
    }

}
export const login = (params: Login.LoginReqForm) => {
    // 返回的数据格式可以和服务端约定
    return Http.post<any>('/user/userlogin', params);
}
export const getHomeData = (params: any) => {
    return Http.get<any>('/home/temperatureAndHumidity', params);
}
export const wxConfigApi = (params: any) => {
    return Http.post<any>('/user/configwx', params);
}